/*
 *
 * Copyright 2015 gRPC authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

#ifndef RAPTOR_LITE_SRC_COMMON_SOCKADDR_H_
#define RAPTOR_LITE_SRC_COMMON_SOCKADDR_H_

#ifdef _WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
#include <mswsock.h>
#else
#include <arpa/inet.h>
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#endif

typedef struct sockaddr raptor_sockaddr;
typedef struct sockaddr_in raptor_sockaddr_in;
typedef struct in_addr raptor_in_addr;
typedef struct sockaddr_in6 raptor_sockaddr_in6;
typedef struct in6_addr raptor_in6_addr;

#endif // RAPTOR_LITE_SRC_COMMON_SOCKADDR_H_
